// JavaScript Document
//scroller width
var swidth=400;
//scroller height
var sheight=60;
//background color
var sbcolor='000000';
//scroller's speed
var sspeed=1;
var stopnews = 0;

//End of your messages
// Begin the ticker code

var resumesspeed=sspeed
function start() {
		if (document.all) {
			iemarquee(ticker, ticker2);
//			iemarquee(ticker2);			
		} else if (document.getElementById) {
			ns6marquee(document.getElementById('ticker'),document.getElementById('ticker2'));
//			ns6marquee(document.getElementById('ticker2'));			
		}
}

function iemarquee(whichdiv, whichdiv2){
		iediv=eval(whichdiv)
		iediv2=eval(whichdiv2)		
		sheight += 30;
		iediv.style.pixelTop=sheight + "px";
		iediv.innerHTML=msg
		sizeup=iediv.offsetHeight
		iediv.style.pixelTop=sheight + sizeup +  "px";		
		iediv2.innerHTML=msg		
		ieslide()
}

function ieslide(){
		if (iediv.style.pixelTop>=sizeup*(-1)){
				iediv.style.pixelTop-=sspeed
				if (parseInt(iediv2.style.top)>=sizeup*(-1)){				
					theTop = parseInt(iediv2.style.top)-sspeed
					iediv2.style.top = theTop + "px";				
				} else {
					sizeup=iediv.offsetHeight
					theTop = parseInt(iediv.style.top)
					iediv2.style.top = theTop + sizeup + "px";
				}
		} else {
				sizeup=iediv2.offsetHeight
				theTop = parseInt(iediv2.style.top)
				iediv.style.top = theTop + sizeup + "px";
		}
		if(stopnews == 0) {
			setTimeout("ieslide()",100)
		}
}

function ns6marquee(whichdiv, whichdiv2){
		ns6div=eval(whichdiv)
		ns6div2=eval(whichdiv2)
		sheight += 30;
		ns6div.style.top=sheight + "px";
		ns6div.innerHTML=msg
		sizeup=ns6div.offsetHeight
		ns6div2.style.top=sheight + sizeup +  "px";		
		ns6div2.innerHTML=msg		
		ns6slide()
}
function ns6slide(){
		if (parseInt(ns6div.style.top)>=sizeup*(-1)){
				theTop = parseInt(ns6div.style.top)-sspeed
				ns6div.style.top = theTop + "px";
				if (parseInt(ns6div2.style.top)>=sizeup*(-1)){				
					theTop = parseInt(ns6div2.style.top)-sspeed
					ns6div2.style.top = theTop + "px";				
				} else {
					sizeup=ns6div.offsetHeight
					theTop = parseInt(ns6div.style.top)
					ns6div2.style.top = theTop + sizeup + "px";
				}
		} else {
				sizeup=ns6div2.offsetHeight
				theTop = parseInt(ns6div2.style.top)
				ns6div.style.top = theTop + sizeup + "px";
		}
		if(stopnews == 0) {
			setTimeout("ns6slide()",100)
		}
}